<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Administrador</title>
	<!-- Le styles -->
	<link href="../assets/css/style5.css" rel="stylesheet" />

</h:head>

<h:body onload="$();">
	<div id="wrapper" align="center">
		<div id="MainConteiner">

			<div id="header_">
				<ui:insert name="header">
					<ui:include src="headerAdmin.xhtml" />
				</ui:insert>
			</div>

			<div id="MainContentConteiner">
				<br />
				<h3>Editar Notícia</h3>
				<!-- form de inserção-->
				<h:form>


							<h:outputLabel value="Título:" />
							<h:inputText value="#{newsMBean.noticiaselecionada.title}" />


							<br/><h:outputLabel value="Conteúdo:" />
							<p:editor id="editor" value="#{newsMBean.noticiaselecionada.content}" width="700" />
							<p:dialog header="Content" widgetVar="dlg" showEffect="fade"
								hideEffect="fade" modal="true">
								<h:outputText id="display" value="#{newsMBean.noticiaselecionada.content}"
									escape="false" />
							</p:dialog>


							<td><h:commandButton value="Salvar!"
									action="#{newsMBean.edit}" /></td>

				</h:form>
				
				Foto selecionada: 
			</div>

			<div id="footer">
				<ui:insert name="footer">
					<ui:include src="../footer.xhtml" />
				</ui:insert>
			</div>
		</div>

	</div>

</h:body>
</html>




